//
//  MJTabBar.m
//  MinJin
//
//  Created by 迟建国 on 2023/3/23.
//

#import "MJTabBar.h"

@implementation MJTabBar

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [[UITabBarItem appearance]setTitleTextAttributes:@{NSFontAttributeName:[UIFont   systemFontOfSize:10],NSForegroundColorAttributeName:rgbHex(0x999999, 1)}   forState:UIControlStateNormal];
        
        [[UITabBarItem appearance]setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:10],NSForegroundColorAttributeName:rgbHex(0x0095F8 , 1)} forState:UIControlStateSelected];
        //        [self setBackgroundColor:[UIColor whiteColor]];
        [self setBarTintColor:UIColor.whiteColor];
        self.backgroundColor = UIColor.whiteColor;

    }
    return self;
}
@end
